export default function handleUrlQuery (query) {
  const url = query.substr(1, query.length - 1)
  const arr = url.split('&') // ['?s=', 'f=7']
  const obj = {}
  arr.forEach(item => {
    const key_value = item.split("=")
    const key = key_value[0]
    const value = key_value[1]
    obj[key] = value
  });
  return obj;
}